public class HomeWorkDemo03 {

    public static void main(String[] args) {
        Circle c = new Circle(10);
        System.out.println(c.GetArea());
        System.out.println(c);
    }
}

class Shape {
    private int w;
    private int l;

    public Shape() {
    }

    public int getW() {
        return w;
    }

    public void setW(int w) {
        this.w = w;
    }

    public int getL() {
        return l;
    }

    public void setL(int l) {
        this.l = l;
    }

    public Shape(int w, int l) {
        this.w = w;
        this.l = l;
    }

    public float GetArea() {
        return 0;
    }
}

class Circle extends Shape {
    private static float Pi = 3.14f;
    private int r;

    public Circle(int r) {
        this.r = r;
    }

    public static float getPi() {
        return Pi;
    }

    public static void setPi(float pi) {
        Pi = pi;
    }

    public int getR() {
        return r;
    }

    public void setR(int r) {
        this.r = r;
    }

    @Override
    public float GetArea() {
        return Pi * r * r;
    }


}

class Rectangle extends Shape {

    @Override
    public float GetArea() {
        return getL() * getW();
    }
}

class Square extends Shape {
    @Override
    public float GetArea() {
        return getL() * getW();
    }
}
